package com.agileboot.domain.airport.report.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("sir_report")
@ApiModel(value = "SirReportEntity对象", description = "安全信息表")
public class SirReportEntity extends BaseEntity<SirReportEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("安全信息ID")
    @TableId(value = "report_id", type = IdType.AUTO)
    private Long reportId;

    @ApiModelProperty("信息标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("终端类型（1 PC，2 移动）")
    @TableField("terminal_type")
    private String terminalType;

    @ApiModelProperty("信息来源")
    @TableField("info_source")
    private String infoSource;

    @ApiModelProperty("责任单位")
    @TableField("duty_dept_id")
    private Long dutyDeptId;

    @ApiModelProperty("信息依据")
    @TableField("basis")
    private String basis;

    @ApiModelProperty("发现人")
    @TableField("discoverer")
    private Long discoverer;

    @ApiModelProperty("发现日期")
    @TableField("discovery_date")
    private Date discoveryDate;

    @ApiModelProperty("发现地点")
    @TableField("discovery_place")
    private String discoveryPlace;

    @ApiModelProperty("是否隐藏报告人")
    @TableField("hidden_people_flag")
    private String hiddenPeopleFlag;

    @ApiModelProperty("接收部门")
    @TableField("accept_dept_id")
    private Long acceptDeptId;

    @ApiModelProperty("分类")
    @TableField("report_type")
    private String reportType;

    @ApiModelProperty("信息描述")
    @TableField("info_describe")
    private byte[] infoDescribe;

    @ApiModelProperty("闭环状态（待接收0 处理中1 已闭环2）")
    @TableField("status")
    private String status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("联系人")
    @TableField("contact_person")
    private Long contactPerson;

    @ApiModelProperty("联系方式")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty("来源主键")
    @TableField("source_id")
    private Long sourceId;

    @ApiModelProperty("来源类型")
    @TableField("source_type")
    private String sourceType;

    @ApiModelProperty("是否归档")
    @TableField("file_flag")
    private Integer fileFlag;

    @ApiModelProperty("反馈信息")
    @TableField("feedback")
    private String feedback;

    @ApiModelProperty("创建者ID")
    @TableField("creator_id")
    private Long creatorId;

    @ApiModelProperty("更新者ID")
    @TableField("updater_id")
    private Long updaterId;


    @ApiModelProperty("检查项id")
    @TableField("inspection_check_id")
    private Long inspectionCheckId;

    @ApiModelProperty("接收人")
    @TableField("updater_by")
    private String updaterBy;


    @TableField("deleted")
    @TableLogic
    private Boolean deleted;
    @Override
    public Serializable pkVal() {
        return this.reportId;
    }
}
